package com.codefish.codefishseckill.utils.threadlocal;

import com.codefish.codefishseckill.utils.model.PageInfo;

/**
 * PageInfo的ThreadLocal
 *
 * @author <a href='https://gitee.com/hzf2281'>codefish</a>
 * @version 1.0.0
 * @since 2022/09/02 上午 11:28
 */
public class PageInfoThreadLocal {
    private static final ThreadLocal<PageInfo> threadLocal = new ThreadLocal<>();

    public static PageInfo get(){
        return threadLocal.get();
    }

    public static void set(PageInfo pageInfo){
        threadLocal.set(pageInfo);
    }

    public static void remove(){
        threadLocal.remove();
    }

}
